using System;
using UnityEngine;
/* 
 *		This class stores infromation about a maze square 
 * 
 */
public class MazeSquare 
{
	private bool solid;	
	private bool spawnPoint;
	private bool spawnHerder;
	private bool hasEnergy;
	private bool lava;
	private bool hasStar;
	private bool finish;
	
	public MazeSquare (bool solid)
	{
		this.solid = solid;
		spawnPoint = false;
		hasEnergy = false;
		lava = false;
		finish = false;
	}
	
	public bool isStar()
	{
		return hasStar;	
	}
	
	public void setStar(bool star)
	{
		this.hasStar = star;
	}
	
	public void setSolid(bool solid)
	{
		this.solid = solid;
	}
	
	public bool isFinish()
	{
		return finish;	
	}
	
	public void setFinish(bool finish)
	{
		this.finish = finish;	
	}
	
	public bool isLava()
	{
		return lava;	
	}	
	
	public void setLava(bool lava)
	{
		this.lava = lava;	
	}
	
	public bool isSpawnPoint()
	{
		return spawnPoint;	
	}
	
	public void setHerderSpawnPoint(bool b)
	{
		spawnHerder = b;
	}
	
	public bool isHerderSpawnPoint()
	{
		return spawnHerder;
	}

	public bool isEnergy()
	{
		return hasEnergy;	
	}
	
	public void setEnergy(bool hasEnergy)
	{
		this.hasEnergy = hasEnergy;
	}
	
	public void setSpawnPoint(bool spawnPoint)
	{
		this.spawnPoint = spawnPoint;	
	}
	
	public void fill()
	{
		solid = true;	
	}
	
	public void carve()
	{
		solid = false;	
	}
	
	public bool isSolid()
	{
		return solid;	
	}
	
	
}

